/*
 * {comment of class}
 *
 * @author (C) <a href="http://www.carfield.com.hk">Carfield Yim </a>, 2004
 */
package hk.com.carfield.content;

import hk.com.carfield.core.Config;
import hk.com.carfield.util.UrlUtil;

import java.io.File;
import java.io.IOException;


public class Unknown implements Content, Redirector {
	private final Config config;
	private final File file;
	public Unknown(final Config config, final File file) {
		super();
		this.config = config;
		this.file = file;
	}
	public String getThumbnail() {
		//TODO add default icon for difference type... should get through servlet so that one jar is ok
		return null;
	}
	public String getContent()  {
		return "";
	}

	public String getUrl() throws IOException {
		return UrlUtil.getUrl(config, file)+"?";	
	}
}